package com.ruoyi.web.vendorclass.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.vendorclass.mapper.VendorclassMapper;
import com.ruoyi.web.vendorclass.domain.Vendorclass;
import com.ruoyi.web.vendorclass.service.IVendorclassService;

/**
 * vendorclassService业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-27
 */
@Service
public class VendorclassServiceImpl implements IVendorclassService 
{
    @Autowired
    private VendorclassMapper vendorclassMapper;

    /**
     * 查询vendorclass
     * 
     * @param cVCCode vendorclass主键
     * @return vendorclass
     */
    @Override
    public Vendorclass selectVendorclassByCVCCode(String cVCCode)
    {
        return vendorclassMapper.selectVendorclassByCVCCode(cVCCode);
    }

    /**
     * 查询vendorclass列表
     * 
     * @param vendorclass vendorclass
     * @return vendorclass
     */
    @Override
    public List<Vendorclass> selectVendorclassList(Vendorclass vendorclass)
    {
        return vendorclassMapper.selectVendorclassList(vendorclass);
    }

    /**
     * 新增vendorclass
     * 
     * @param vendorclass vendorclass
     * @return 结果
     */
    @Override
    public int insertVendorclass(Vendorclass vendorclass)
    {
        return vendorclassMapper.insertVendorclass(vendorclass);
    }

    /**
     * 修改vendorclass
     * 
     * @param vendorclass vendorclass
     * @return 结果
     */
    @Override
    public int updateVendorclass(Vendorclass vendorclass)
    {
        return vendorclassMapper.updateVendorclass(vendorclass);
    }

    /**
     * 批量删除vendorclass
     * 
     * @param cVCCodes 需要删除的vendorclass主键
     * @return 结果
     */
    @Override
    public int deleteVendorclassByCVCCodes(String[] cVCCodes)
    {
        return vendorclassMapper.deleteVendorclassByCVCCodes(cVCCodes);
    }

    /**
     * 删除vendorclass信息
     * 
     * @param cVCCode vendorclass主键
     * @return 结果
     */
    @Override
    public int deleteVendorclassByCVCCode(String cVCCode)
    {
        return vendorclassMapper.deleteVendorclassByCVCCode(cVCCode);
    }
}
